// 拼接HTTPUrl
function url(type, pathname) {
  return window.RPConfig[type] + pathname;
}

const implementationPlanApi = {
  // 查询
  queryList: params => {
    return $http.get(url("example", "xxx"), params);
  },
  // 新建实例数据
  createImplementation: params => {
    return $http.get(url("example", "xxx"), params);
  },
  // 编辑
  updateImplementation: params => {
    return $http.post(url("example", "xxx"), params);
  },
   // 详情
  queryImplementation: params => {
    return $http.post(url("example", "xxx"), params);
  },
  // 获取实施方案列表数据
  getUserListPage: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  },
  // 获取关联表
  getAssociationTable: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  },  
  // 获取业务单元列表
  getBusinessUnit: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  }, 
    // 获取举措大类列表
  getCategoryInitiatives: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  }, 
    // 获取举措细类列表数据
  getDetailsInitiatives: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  },
    // 获取当前状态列表数据
    getStatusList: param => {
    return $http.post(url("example", "/user/findUserListPage"), param).then(response => response.data);
  },
};

export default implementationPlanApi;
